package net.jiupinshi.service.user.impl;

import net.jiupinshi.dao.UserDao;
import net.jiupinshi.dto.UserDTO;
import net.jiupinshi.entity.User;
import net.jiupinshi.service.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description: 请添加描述
 * @author: penghui.guo
 * @create: 2018/9/21 18:53
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public User getUserInfo(Long id) {
        return userDao.getUserInfo(id);
    }

    @Override
    public int insertUser(User user) {
        return userDao.insertUser(user);
    }

    @Override
    public int updateUserInfo(User user) {
        return userDao.updateUserInfo(user);
    }

    @Override
    public UserDTO getUserInfoByPwd(String mobile, String password) {
        return userDao.getUserInfoByPwd(mobile, password);
    }

    @Override
    public List<User> getUsers() {
        return null;
    }
}
